/*
 * @Author: Jayken
 * @Email: jaykenxie@outlook.com
 * @Date: 2019-08-06 14:03:22
 */
export default [
  // type
  {
    type: "select",
    title: "类型",
    field: "type",
    value: "text",
    options: [
      { value: "text", label: "文本", disabled: false },
      { value: "password", label: "密码", disabled: false },
      { value: "textarea", label: "文本域", disabled: false },
      { value: "number", label: "数字", disabled: false }
    ],
    props: {
      placeholder: "请选择",
      "not-found-text": "无匹配数据",
      placement: "bottom"
    },
    col: {
      span: 12
    }
  },
  // pleasehold
  {
    type: "input",
    title: "提示文本",
    field: "placeholder",
    value: "请输入",
    props: {
      type: "text",
      maxlength: 30
    },
    col: {
      span: 12
    }
  },
  // clearable
  {
    type: "select",
    title: "清空按钮",
    field: "clearable",
    value: "0",
    options: [{ value: "1", label: "显示", disabled: false }, { value: "0", label: "不显示", disabled: false }],
    props: {
      placeholder: "请选择",
      "not-found-text": "无匹配数据",
      placement: "bottom"
    },
    col: {
      span: 12
    }
  },
  // disabled
  {
    type: "select",
    title: "禁用状态",
    field: "disabled",
    value: "0",
    options: [{ value: "1", label: "禁用", disabled: false }, { value: "0", label: "不禁用", disabled: false }],
    props: {
      placeholder: "请选择",
      "not-found-text": "无匹配数据",
      placement: "bottom"
    },
    col: {
      span: 12
    }
  },
  // readonly
  {
    type: "select",
    title: "只读",
    field: "readonly",
    value: "0",
    options: [{ value: "1", label: "是", disabled: false }, { value: "0", label: "否", disabled: false }],
    props: {
      placeholder: "请选择",
      "not-found-text": "无匹配数据",
      placement: "bottom"
    },
    col: {
      span: 12
    }
  },
  // maxlength
  {
    type: "InputNumber",
    title: "最大输入长度",
    field: "maxlength",
    value: 255,
    props: {
      type: "number",
      max: 255,
      min: 0
    },
    col: {
      span: 12
    }
  }
];
